<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">平台信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>平台名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="平台名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td width="135" align="right"><span class="color_red">*</span>平台所在地点：</td>
		<td colspan="3"><input name="proposal/address" label="平台所在地点"
			type="text" required class="input_css required maxlength:100"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台认定时间：</td>
		<td><c:set var="hold_date">
				<x:out select="$xmlData/data/proposal/hold_date" />
			</c:set> <cpt:date id="hold_date" name="proposal/hold_date"
				value="${hold_date}" className=" required date" label="平台认定时间"></cpt:date>
		</td>
		<td align="right" nowrap><span class="color_red">*</span>认定部门：</td>
		<td><input name="proposal/department" label="认定部门" type="text"
			required class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/department" />" /></td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>项目核准文号<br>或备案号：</td>
		<td colspan="1"><input name="proposal/prp_review_no" label="项目核准文号"
			type="text" required class="input_css required maxlength:50"
			 maxlength="50"
			value="<x:out select="$xmlData/data/proposal/prp_review_no" />" /></td>
		<td align="right" ><span class="color_red">*</span>指南代码：</td>
		<td  valign="middle" >
		<input name="proposal/guide_code" value="<x:out select="$xmlData/data/proposal/guide_code" />" class="required" maxlength="100" label="指南代码" />
		</td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台类别：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="research" label="综合类"
				value="01" /><span style="vertical-align: middle;">综合类</span></label> <label>
				<input type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="research" label="专业类"
				value="02" /><span style="vertical-align: middle;">专业类</span>
		</label> <label> <input type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="research" label="行业类"
				value="03" /><span style="vertical-align: middle;">行业类</span>
		</label> <input
			type="hidden" name="proposal/research_value" id="research_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/research_value" />"
			label="平台类别" />
		 <input type="hidden" name="proposal/research_name"
			id="research_name"
			value="<x:out select="$xmlData/data/proposal/research_name" />"
			label="平台类别" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台性质：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="nature_01"
				style="vertical-align: middle;" name="nature_type" label="政府主导建设"
				value="01" /><span style="vertical-align: middle;">政府主导建设</span></label> <label>
				<input type="radio" class="do " id="nature_02"
				style="vertical-align: middle;" name="nature_type" label="社会投资建设"
				value="02" /><span style="vertical-align: middle;">社会投资建设</span>
		</label> <input type="hidden" name="proposal/nature_type_value"
			id="nature_type_value" class="required"
			value="<x:out select="$xmlData/data/proposal/nature_type_value" />"
			label="平台性质" /> <input type="hidden"
			name="proposal/nature_type_name" id="nature_type_name"
			value="<x:out select="$xmlData/data/proposal/nature_type_name" />"
			label="平台性质" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>平台服务范围：</td>
		<td nowrap colspan="5" valign="middle">
		<label> <input type="radio" class="do " id="service_01" style="vertical-align: middle;" name="service" label="全市" value="01"  onclick="service('01')"/><span style="vertical-align: middle;">全市</span></label> 
		<label> <input type="radio" class="do " id="service_02" style="vertical-align: middle;" name="service" label="区" value="02" onclick="service('02')"/></label><span style="vertical-align: middle;">
		<input name="proposal/service_area" label="平台服务范围" type="text" class="input_css gray" disabled maxlength="100" id="service_area_02" onchange="setValue('service_area_02');" value="<x:out select="$xmlData/data/proposal/service_area" />" />区</span> 
		<label>
		<input type="radio" class="do " id="service_03" style="vertical-align: middle;" name="service" label="开发区(园区、孵化器)" value="03" onclick="service('03')"/></label><span style="vertical-align: middle;">
		<input name="proposal/dep_area" label="平台服务范围" type="text" class="input_css  gray" disabled maxlength="100"  id="service_area_03" onchange="setValue('service_area_03');" value="<x:out select="$xmlData/data/proposal/dep_area" />" />开发区(园区、孵化器)</span>
		<label> <input type="radio" class="do " id="service_04" style="vertical-align: middle;" name="service" label="其他" value="04" onclick="service('04')" /></label><span style="vertical-align: middle;">其他（请注明）</span>
		<input id="service_area_04" name="proposal/other" label="平台服务范围" type="text" class="input_css  gray" disabled maxlength="100" onchange="setValue('service_area_04');" value="<x:out select="$xmlData/data/proposal/other" />" />
		<input type="hidden" name="proposal/service_value" id="service_value" class="required" value="<x:out select="$xmlData/data/proposal/service_value" />" label="平台服务范围" /> 
		<input type="hidden" name="proposal/service_name" id="service_name" value="<x:out select="$xmlData/data/proposal/service_name" />" label="平台服务范围" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台主要功能：</td>
		<td colspan="3"><c:set var="function">
				<x:out select="$xmlData/data/proposal/function_value" />
			</c:set> 
			<cpt:select id="function" key="platform_function" className="select_width" onChange="setStatus(this.value);"
				value="${function}"></cpt:select>
		   <input type="hidden"
			id="function_value" name="proposal/function_value" class="required"
			value="${function}" label="平台主要功能">
			 <input type="hidden"
			name="proposal/function_name"
			value="<x:out select="$xmlData/data/proposal/function_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申请日期"></cpt:date> 
		</td>
	</tr>
	
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
</table>	

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo2" cellspacing="1">
	<tr>
		<td colspan="5" class="t_bar2">平台人员构成情况</td>
	</tr>
	<tr>

		<td align="right"><span class="color_red">*</span>平台总人数：</td>
		<td><input name="proposal/staff_total"  id="staff_total"   type="text" 
			class="input_css required" style="text-align: right" label="平台总人数"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();setPre1();setPre2();setPre4();"
			value="<x:out select="$xmlData/data/proposal/staff_total" />" /></td>
		<td align="right" >其中本科以上学历者占研发机构总人数的比例（%）：</td>
		<td  colspan="2">
		<input name="proposal/junior_college_pre_pre" label="100%" id="junior_college_pre_pre" value='100' type="hidden">
		<input name="proposal/junior_college_pre"  id="junior_college_pre"   type="text"   disabled
			class="input_css gray valueCompare:junior_college_pre:junior_college_pre_pre" style="text-align: right" 
			onfocus="InitInput.setNumber(this,9,2,2)" label="本科以上学历者占研发机构总人数的比例"
			value="<x:out select="$xmlData/data/proposal/junior_college_pre" />" /></td>
	</tr>
	<tr>
	<td   align="right"><span class="color_red">*</span>研发人数：</td>
	<td >
	<input  name="proposal/research_num"  id="research_num" onchange="setPre1();" label="研发人数" type="text"   class="input_css required valueGreatEqual:staff_total:research_num" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/research_num" />"/> 
	</td>
	<td   align="right">占研发机构总人数的比例（%）：</td>
	<td  colspan="2">
	<input  name="proposal/research_proportion" id="proportion" onchange="setPre4();" label="研发人员数占比" type="text" disabled class="input_cs  gray valueCompare:proportion:junior_college_pre_pre" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/research_proportion" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right"><span class="color_red">*</span>其中：本科以上人数：</td>
	<td >
	<input  name="proposal/master_num1"  id="master_num1" onchange="setPre1();" label="本科以上人数" type="text"   class="input_css required valueGreatEqual:research_num:master_num1" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/master_num1" />"/> 
	</td>
	</tr>
	<tr>
	<td   align="right" nowrap><span class="color_red">*</span>专职技术服务人员数：</td>
	<td >
	<input  name="proposal/zzjsfw"  id="zzjsfw" onchange="setPre4();" label="专职技术服务人员数" type="text"  class="input_css required valueGreatEqual:staff_total:zzjsfw" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/zzjsfw" />"/> 
	</td>
	<td   align="right" nowrap>占研发机构总人数的比例（%）：</td>
	<td  colspan="2">
	<input  name="proposal/zzjsfw_num" id="zzjsfw_num" label="专职技术服务人员数占比" type="text" disabled class="input_cs  gray valueCompare:zzjsfw_num:junior_college_pre_pre" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/zzjsfw_num" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right"><span class="color_red">*</span>其中：本科以上人数：</td>
	<td >
	<input  name="proposal/master_num2"  id="master_num2" onchange="setPre1();" label="本科以上人数" type="text"   class="input_css required valueGreatEqual:research_num:master_num2" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/master_num2" />"/> 
	</td>
	</tr>
	 <tr>
		<td align="center" rowspan="2">平台人员学历构成</td>
		<td align="center"><span class="color_red">*</span>博士</td>
		<td align="center"><span class="color_red">*</span>硕士</td>
		<td align="center"><span class="color_red">*</span>本科</td>
		<td align="center"><span class="color_red">*</span>其他</td>
	</tr>
	<tr>

		<td >
		    <input name="proposal/edu_total" id="edu_total" type="hidden" label="平台人员学历构成总数" value="<x:out select="$xmlData/data/proposal/edu_total" />"/>
		    <input name="proposal/junior_college"  id="junior_college"   type="text" 
			class="input_css valueCompare:edu_total:staff_total required" style="text-align: right" label="博士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/junior_college" />" /></td>
		<td><input name="proposal/undergraduate" id="undergraduate" type="text" 
			class="input_css required" style="text-align: right" label="硕士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/undergraduate" />" /></td>
		<td ><input name="proposal/master" id="master" type="text" 
			class="input_css required" style="text-align: right" label="本科"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/master" />" /></td>
		<td ><input name="proposal/doctor" id="doctor"  type="text" 
			class="input_css required" style="text-align: right" label="其他"
			onfocus="InitInput.setNumber(this,9,0,0)"
		    onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/doctor" />" /></td>
	</tr>

	<tr>
		<td align="center" rowspan="2">平台人员职称构成</td>
		<td align="center"><span class="color_red">*</span>高级</td>
		<td align="center"><span class="color_red">*</span>中级</td>
		<td align="center"><span class="color_red">*</span>初级</td>
		<td align="center"><span class="color_red">*</span>其他</td>
	</tr>
	<tr>

		<td >
		<input name="proposal/assistant_total" id="assistant_total" label="平台人员职称构成总数" type="hidden" value="<x:out select="$xmlData/data/proposal/assistant_total" />"/>
		<input name="proposal/assistant_level"  id="assistant_level"   type="text" 
			class="input_css valueCompare:assistant_total:staff_total required" style="text-align: right" label="高级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level,other_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/assistant_level" />" /></td>
		<td ><input name="proposal/middle_level"  id="middle_level"   type="text" 
			class="input_css required" style="text-align: right" label="中级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level,other_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/middle_level" />" /></td>
		<td ><input name="proposal/high_level"  id="high_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="初级"
			onchange="countNum('','assistant_level,middle_level,high_level,other_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/high_level" />" /></td>
		<td >
		<input name="proposal/other_level"  id="other_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="其他"
			onchange="countNum('','assistant_level,middle_level,high_level,other_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/other_level" />" />
			</td>	
	</tr> 
	</table>

<div class="t_bar">
	<span class="color_red">*</span>平台主要设备设施
</div>

<table id="tblEuipments" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="60%">设备名称</th>
			<th class="TblHead" align="center" width="15%">数量（台/套）</th>
			<th class="TblHead" align="center" width="15%">金额（万元）</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center">&nbsp; <input type="radio"
				class="radiobutton" name="selEuipments">
			</td>
			<td align="center">&nbsp; <span
				name="euipments|euipment[0]@seq_no">[index]</span>
			</td>
			<td><input type="text" name="euipments|euipment[0]|name"
				label="设备名称" class=" input_text required" maxlength="50"
				style="width: 80%" /></td>

			<td><input type="text" name="euipments|euipment[0]|amount"
				label="数量" onfocus="InitInput.setNumber(this,7,0,0)"
				style="text-align: right; width: 80%" class=" input_text required" />
			</td>
			<td><input type="text" name="euipments|euipment[0]|money"
				label="金额" onfocus="InitInput.setNumber(this,7,4,2)"
				style="text-align: right; width: 80%" class=" input_text required" />
			</td>
		</tr>

		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/euipments/euipment" var="euipment">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">&nbsp; <input type="radio"
					class="radiobutton" name="selEuipments">
				</td>
				<td align="center">&nbsp; <span
					name="euipments/euipment[${flag}${index}]@seq_no"><x:out
							select="$euipment/@seq_no" /></span>
				</td>
				<td><input type="text"
					name="euipments/euipment[${flag}${index}]/name" label="设备名称"
					style="width: 80%" class=" input_text required"
					value="<x:out select="$euipment/name" />" maxlength="50" /></td>

				<td><input type="text"
					name="euipments/euipment[${flag}${index}]/amount" label="数量"
					onfocus="InitInput.setNumber(this,7,0,0)"
					style="text-align: right; width: 80%" class=" input_text required"
					value="<x:out select="$euipment/amount" />" /></td>
				<td><input type="text"
					name="euipments/euipment[${flag}${index}]/money" label="金额"
					onfocus="InitInput.setNumber(this,7,4,2)"
					style="text-align: right; width: 80%" class=" input_text required"
					value="<x:out select="$euipment/money" />" /></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>

	</tbody>
</table>
<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="addNewRow('tblEuipments');try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移"
			onclick="movePrev('tblEuipments','selEuipments')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblEuipments','selEuipments')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblEuipments','平台主要设备设施');"></td>
	</tr>
</table>
<br />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar2"><span class="color_red">*</span>服务收入情况</td>
	</tr>
	<tr>
		<td align="right">大前年度技术性服务收入（万元）：</td>
		<td>
			<input  name="proposal/thr_service_income" disabled 
			label="大前年度技术性服务收入" type="text" id="thr_service_income"  
			class="input_css gray required" onchange="setRate1();"
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" 
			value="<x:out select="$xmlData/data/proposal/thr_service_income" />"/>
		</td>
		<td align="right">服务企业数：</td>
		<td>
		<input name="proposal/thr_service_num"  type="text" id="thr_service_num" 
			class="input_css required" style="text-align: right" label="服务企业数"
			onfocus="InitInput.setNumber(this,9,0,0)" onchange="setRate2();"
			value="<x:out select="$xmlData/data/proposal/thr_service_num" />" />
		</td>
	</tr>
	<tr>
		<td align="right">前年度技术性服务收入（万元）：</td>
		<td>
		<input name="proposal/two_service_income" id="two_service_income" 
		   label="前年度技术性服务收入" type="text" disabled   
			class="input_css gray required" onchange="setRate1();setRate3();"
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" 
			value="<x:out select="$xmlData/data/proposal/two_service_income" />"/>
		</td>
		<td align="right">服务企业数：</td>
		<td>
		<input name="proposal/two_service_num"  type="text" id="two_service_num"
			class="input_css required" style="text-align: right" label="服务企业数"
			onfocus="InitInput.setNumber(this,9,0,0)" onchange="setRate2();setRate4();"
			value="<x:out select="$xmlData/data/proposal/two_service_num" />" />
		</td>
	</tr>
	<tr>
		<td align="right">增长率（%）：</td>
		<td>
		<input  name="proposal/two_income_per"  id="two_income_per"
		   label="增长率" type="text"   disabled
			class="input_css gray required" 
			style="text-align: right"  
			value="<x:out select="$xmlData/data/proposal/two_income_per" />"/>
		</td>
		<td align="right">增长率（%）：</td>
		<td>
		<input  name="proposal/two_num_per" id="two_num_per" 
			label="增长率" type="text" disabled  
			class="input_css gray required" 
			style="text-align: right"  
			value="<x:out select="$xmlData/data/proposal/two_num_per" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">上年度技术性服务收入（万元）：</td>
		<td>
	   <input name="proposal/last_service_income"  id="last_service_income"
			 label="前年度技术性服务收入" type="text" disabled  
			class="input_css gray required" onchange="setRate3();"
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" 
			value="<x:out select="$xmlData/data/proposal/last_service_income" />"/>	
		</td>
		<td align="right">服务企业数：</td>
		<td>
		<input name="proposal/last_service_num"  type="text" id="last_service_num"
			class="input_css required" style="text-align: right" label="服务企业数"
			onfocus="InitInput.setNumber(this,9,0,0)" onchange="setRate4()"
			value="<x:out select="$xmlData/data/proposal/last_service_num" />" />
		</td>
	</tr>
	<tr>
		<td align="right">增长率（%）：</td>
		<td>
		<input name="proposal/last_income_per" id="last_income_per"
			label="增长率" type="text"  disabled 
			class="input_css gray required" 
			style="text-align: right" 
			value="<x:out select="$xmlData/data/proposal/last_income_per" />"/>
		</td>
		<td align="right">增长率（%）：</td>
		<td>
		<input name="proposal/last_num_per" id="last_num_per" 
			label="增长率" type="text" disabled  
			class="input_css gray required" 
			style="text-align: right" 
			value="<x:out select="$xmlData/data/proposal/last_num_per" />"/>
		</td>
	</tr>
</table>

<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="basicInfo2">
	<tr>
		<td colspan="4" class="t_bar2"><span class="color_red">*</span>申报项目资金情况</td>
	</tr>
	<tr>
		<td align="right">项目计划投入总额（万元）：</td>
		<td colspan="1" width="30%"><input
			name="proposal/investment_budget" id="investment_budget"
			label="项目计划投资总额" type="text"
			class="input_css gray valueCompare:finsh_budget:investment_budget"
			disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right" width="20%">项目执行期已完成投资<br>（万元）：</td>
		<td width="30%"><input name="proposal/finsh_budget"
			id="finsh_budget" label="项目执行期已完成投资" type="text"
			class="input_css gray" disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>
	<tr>
		<td align="right">申请金额（万元）：</td>
		<td><input name="proposal/sqje" id="sqje" class="input_css gray"
			disabled label="申请金额" type="text" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/sqje" />" /></td>
		<td align="right">项目类别：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" />
		</td>
	</tr>

	<tr>
		<td align="right">支持方式：</td>
		<td><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>

		<td align="right">资金级次：</td>
		<td><span name="proposal/fund_level">市级</span></td>
	</tr>
	<tr>
		<td align="right" nowrap>归口管理部门：</td>
		<td><span name="proposal/org_name">无锡市科学技术局</span></td>
		<td align="right">管理类别：</td>
		<td><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="3">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	<tr>
	<td colspan="4" class="t_bar2">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="4">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	<!-- 
	<tr>
		<td  align="right" nowrap>项目所属产业：</td>
		<td nowrap colspan="3">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	 -->
</table>
<br />

<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo4">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input name="proposal/contact_psn_cname" label="项目联系人"
			type="text" required class="input_css required" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/contact_psn_tel" label="联系电话"
			type="text" required class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="联系手机"
			type="text" maxlength="11"  onfocus="InitInput.setNumber(this,11,0,0)"
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input name="proposal/contact_psn_email" label="电子邮箱"
			type="text" required class="input_css required email" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
	$(function() {
		cydw('org1');
		cydw('org2');
		service($("#service_value").val());
		changeDrugCategory();
		changeDrugApproval('drug_approvals_td');
		changeDeviceCategory();
	});

	function cydw(id) {
		var count = 0;
		$("#" + id).find("input[type='text']").each(function() {
			if ($.trim($(this).val()) != '') {
				count += 1;
			}
		});
		if (count != 0) {
			$("#" + id).find("input[type='text']").each(function() {
				$(this).addClass("required");
			});
			$("#" + id).find("span[id^='color']").each(function() {
				$(this).css('display', '');
			});
		} else {
			$("#" + id).find("input[type='text']").each(function() {
				$(this).removeClass("required");
			});
			$("#" + id).find("span[id^='color']").each(function() {
				$(this).css('display', 'none');
			});
		}
	}

	function changeDrugCategory() {
		var val = $("#drug_category_value").val();
		var classAttr = "input_css";
		if (val == '03') {
			$("#drug_category").attr("style", "display:");
			$("#drug_category").attr("class", classAttr + " required");
		} else {
			$("#drug_category").attr("style", "display:none");
			$("#drug_category").attr("class", classAttr);
			$("#drug_category").val("");
		}
	}

	function changeDrugApproval(objId) {
		var val = $("#drug_approvals_value").val();
		$("#" + objId).find("label[id^='label0']").each(function() {
			if (val == '02') {
				$(this).attr("style", "display:");
				$("#drug_approvaled_value").addClass("required");
			} else {
				$(this).attr("style", "display:none");
				$("#drug_approvaled_value").removeClass("required");
			}
		});
	}
	function changeDeviceCategory() {
		var val = $("#medicdevice_category_value").val();
		var classAttr = "input_css";
		if (val == '03') {
			$("#medicdevice_category").attr("style", "display:");
			$("#medicdevice_category").attr("class", classAttr + " required");
		} else {
			$("#medicdevice_category").attr("style", "display:none");
			$("#medicdevice_category").attr("class", classAttr);
			$("#medicdevice_category").val("");
		}
	}

	function service(num) {
		$(":input[id^=service_area_]").addClass("gray");
		$(":input[id^=service_area_]").removeClass("required");
		$(":input[id^=service_area_]").attr("disabled", true);
		if (num == '01') {
			$(":input[id^=service_area_]").val("");
		} else {
			$("#service_area_" + num).removeClass("gray");
			$("#service_area_" + num).addClass("required");
			$("#service_area_" + num).attr("disabled", false);
			$(":input[id^=service_area_]").not("#service_area_" + num).val("");
		}

	}
	function setValue(id) {
		if ("service_area_02" == id) {
			$("#service_name").val($("#" + id).val() + "区");
		}
		if ("service_area_03" == id) {
			$("#service_name").val($("#" + id).val() + "开发区");
		}
		if ("service_area_04" == id) {
			$("#service_name").val("其他：" + $("#" + id).val());
		}
	}
	
	function setRate1(){
		var thr_service_income = $("#thr_service_income").val();
		var two_service_income = $("#two_service_income").val();
	//	var staff_total = $("#staff_total").val();
		if (thr_service_income == ''||thr_service_income == 0||two_service_income == ''||two_service_income == 0) {
			$("#two_income_per").val("0.00");
					
		} else {
			$("#two_income_per").val(formatVal((two_service_income * 100 / thr_service_income)-100));
		}
	}
	
	function setRate2(){
		var thr_service_num = $("#thr_service_num").val();
		var two_service_num = $("#two_service_num").val();
	//	var staff_total = $("#staff_total").val();
		if (thr_service_num == ''||thr_service_num == 0||two_service_num == ''||two_service_num == 0) {
			$("#two_num_per").val("0.00");
					
		} else {
			$("#two_num_per").val(
					formatVal((two_service_num * 100 / thr_service_num)-100));
		}
	}
	
	function setRate3(){
		var two_service_income = $("#two_service_income").val();
		var last_service_income = $("#last_service_income").val();
	//	var staff_total = $("#staff_total").val();
		if (last_service_income == ''||last_service_income == 0||two_service_income == ''||two_service_income == 0) {
			$("#last_income_per").val("0.00");
					
		} else {
			$("#last_income_per").val(
					formatVal((last_service_income * 100 / two_service_income)-100));
		}
	}
	
	function setRate4(){
		var two_service_num = $("#two_service_num").val();
		var last_service_num = $("#last_service_num").val();
	//	var staff_total = $("#staff_total").val();
		if (two_service_num == ''||two_service_num == 0||last_service_num == ''||last_service_num == 0) {
			$("#last_num_per").val("0.00");
					
		} else {
			$("#last_num_per").val(
					formatVal((last_service_num * 100 / two_service_num)-100));
		}
	}

	function setPre() {
		var teach_staff = $("#research_staff").val();
		var technology_staff = $("#technology_staff").val();
		var staff_total = $("#staff_total").val();
		if (staff_total == '') {
			$("#research_staff_pre").val("0.00");
			$("#technology_staff_pre").val("0.00");
		} else {
			$("#research_staff_pre").val(
					formatVal(teach_staff * 100 / staff_total));
			$("#technology_staff_pre").val(
					formatVal(technology_staff * 100 / staff_total));
		}

	}

	function setPre1() {
		var teach_staff = $("#research_num").val();
		var staff_total = $("#staff_total").val();
		if (staff_total == '') {
			$("#proportion").val("0.00");
		} else {
			$("#proportion").val(formatVal(teach_staff * 100 / staff_total));
		}
	}
	function initTreeValue2CallBack() {
		cydw('org1');
		cydw('org2');
	}

	function autoCountFund() {
		var count3 = 0;
		var count2 = 0;
		$("#tblEuipments tr:gt(1)").each(
				function() {
					var fund = $(this).children().eq("3").children().val();
					var fund3 = $(this).children().eq("4").children().val();
					if (!$.isNumeric(fund))
						fund = "0";
					if (!$.isNumeric(fund3))
						fund3 = "0";
					count2 = formatNumberAuto(
							(parseFloat(fund) + parseFloat(count2)) + "", 9, 0,
							0);
					count3 = formatNumberAuto(
							(parseFloat(fund3) + parseFloat(count3)) + "", 9,
							4, 2);
				});
		$("#amount_count").val(count2);
		$("#money_count").val(count3);
	}

	function setEmptyValueForTree(id) {
		$("#" + id).val("");
		$("#" + id + "_hideId").val("");
		$("#" + id + "_hideName").val("");
		$("#" + id + "_code").val("");
		$("#" + id + "_value").val("");
		$("#" + id + "_name").val("");
		$(
				"#" + id + ",[name$='/" + id + "_code']" + ",[name$='/" + id
						+ "_name'],[name$='/" + id + "_value']").val("");
		$("#sqdm").val("");
		cydw('org1');
		cydw('org2');
	}
	
	function setPre4(){
		var  zzjsfw=$("#zzjsfw").val();
	    var  staff_total=$("#staff_total").val();
	    if(staff_total==''){
	    	$("#zzjsfw_num").val("0.00");
	    }else{
	    $("#zzjsfw_num").val(formatVal(zzjsfw*100/staff_total));
	    }
	}
	
	function setPre2(){
		var  edu_total=$("#edu_total").val();
	    var  staff_total=$("#staff_total").val();
	    if(staff_total==''){
	    	$("#junior_college_pre").val("0.00");
	    }else{
	    $("#junior_college_pre").val(formatVal(edu_total*100/staff_total));
	    }
	}
</script>

